package com.example.flight_ticket_app.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
public class Refund implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer ticketId;

    private Integer indentId;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    private Date generateTime;

    public Refund(){}

    public Refund(Integer ticketId, Date generateTime, Integer indentId){
        this.generateTime = generateTime;
        this.ticketId = ticketId;
        this.indentId = indentId;
    }

}
